<?php
	include "../User.php";
	$users=new User;
	$users->setUsername("admin");
	$oldpassword=sha1($_POST['oldpwd']);
	$dboldpwd=$users->checkPwd($oldpassword);
	if($oldpassword!=$dboldpwd)
	{
		echo "Wrong Password";
	}
	else
	{
		echo "Correct";
	}	
?>
